package com.pan;

import com.pan.annotation.EnableMyService;
import com.pan.service.Myservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@EnableMyService
public class HelloSpring {

    public static void main(String[] args) {

        SpringApplication.run(HelloSpring.class, args);

    }

    @Bean
    public ThreadPoolTaskExecutor threadPerTaskExecutor(){
        return new ThreadPoolTaskExecutor();
    }


}
